package com.yc.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * BBS论坛-回帖表-2
 * </p>
 *
 * @author k
 * @since 2024-11-25
 */
@Getter
@Setter
@TableName("tbl_reply")
public class TblReply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 内容, HTML格式
     */
    @TableField("content")
    private String content;

    /**
     * 发表时间, 默认当前时间
     */
    @TableField("publishtime")
    private LocalDateTime publishtime;

    /**
     * 修改时间, 用户最后修改回复信息的时间
     */
    @TableField("modifytime")
    private LocalDateTime modifytime;

    /**
     * 用户编号, 回复人
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 帖子编号
     */
    @TableField("topicid")
    private Integer topicid;

    @TableField(exist = false)
    private TblUser user;
}
